


if [ ! -d gperftools-2.3 ]; then 
	git clone https://git.oschina.net/wr4ng1er/gperftools-2.3.git
else
	echo "gperftools-2.3 file exit"
fi 



cd gperftools-2.3
./configure --prefix=/opt/google-perftools/ && make && make install

echo 'export PATH=$PATH:/opt/google-perftools/bin' >> /etc/profile && source /etc/profile 
echo '/opt/google-perftools/lib' >> /etc/ld.so.conf.d/perftools.conf
echo '/opt/google-perftools/include' >> /etc/ld.so.conf.d/perftools.conf
sudo /sbin/ldconfig
mkdir /tmp/tcmalloc
chmod 0777 /tmp/tcmalloc/




